import { Module } from '@nestjs/common';
import { ShareService } from './share.service';
import { ShareController } from './share.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Share } from './entities/share.entity';
import { UserToShare } from './entities/usertoshare.entity';
import { User } from 'src/user/entities/user.entity';
import { GroupToShare } from './entities/grouptoshare.entity';
import { Group } from 'src/group/entities/group.entity';
import { usertogroup } from 'src/group/entities/usertogroup.entity';

@Module({
  imports:[
    TypeOrmModule.forFeature([Share]),
    TypeOrmModule.forFeature([UserToShare]),
    TypeOrmModule.forFeature([GroupToShare]),
    TypeOrmModule.forFeature([User]),
    TypeOrmModule.forFeature([Group]),
    TypeOrmModule.forFeature([usertogroup]),
  ],
  controllers: [ShareController],
  providers: [ShareService],
  exports:[ShareService]
})
export class ShareModule {}
